//package stud.aistar.listener;
//
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.HandlerInterceptor;
//import org.springframework.web.servlet.ModelAndView;
//import stud.aistar.entity.Doctorlogin;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpSession;
//
///**
// * *
// *
// * @ClassName :wangyu
// * @Description
// * @Author
// * @Date2019/10/16 16:49
// * @Version V1.0
// */
//@Component
//public class DoctorLoginInterceptor implements HandlerInterceptor{
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//
//        HttpSession session = request.getSession();
//
//        Doctorlogin doctorlogin = null;
//
//        doctorlogin = (Doctorlogin) session.getAttribute("doctorLogin");
//
//        System.out.println(doctorlogin);
//        return false;
//    }
//
//    @Override
//    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
//
//    }
//
//    @Override
//    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
//
//    }
//}
